<template>
  <div class="intro">
    <div class="intro-title">{{chamberCommerceInfo.name}}</div>
    <div class="intro-time">{{chamberCommerceInfo.created_at}}</div>
    <!-- <rich-text :nodes="chamberCommerceInfo.desc"/> -->
    <wxParse :content="chamberCommerceInfo.desc"/>
  </div>
</template>

<script>
import wxParse from 'mpvue-wxparse'
export default {
  data(){
    return{
      a:'&nbsp;&nbsp;&nbsp;&nbsp;<p>5555dfggddg<br/></p>',
      chamberCommerceInfo:'',
      desc:'',
    }
  },
  components:{
    wxParse
  },
  onShow(){
    this.reqChamberCommerceInfo();
  },
  //下拉刷新
  onPullDownRefresh () {
    this.reqChamberCommerceInfo();
  },
  methods:{
    // 获取商会历史数据
    async reqChamberCommerceInfo(){
      let res = await this.$api.getChamberCommerceInfo();
      if(res.data.level == "success"){
        let data = res.data.data;
        this.chamberCommerceInfo = data;
      }else{
        wx.showToast({
          title: '获取活动列表失败',
          icon: 'none',
          duration: 1000
        })
      }
    },
  }
}
</script>

<style lang="scss" scoped>
  .intro{
    padding: 0 40rpx;
    .intro-title{
      line-height: 60rpx;
      font-weight: 600;
    }
    .intro-time{
      font-size: 26rpx;
      color: #cccccc;
      margin-bottom: 20rpx;
    }
  }
</style>
<style>
.strong{
  font-weight: 600;
}
</style>
